package com.infolab.aims;

import java.util.HashMap;
import java.util.Map;


public class GlobalConstant{
	
	
	public static String SESSION_CURRENT_SYSTEMUSER = "currentSystemUser";
	
	public static String FORM_MODE_UPDATE = "update";
	public static String FORM_MODE_CREATE = "create";
	public static String FORM_MODE_DELETE = "delete";
	
	public static String DATE_FORMAT_JAVA = "yyyy-MM-dd";
	public static String DATE_TIME_FORMAT_JAVA = "yyyy-MM-dd HH:mm";
	public static String DATE_TIME_FORMAT_INTERFACE = "dd/MM/yyyy HH:mm:ss";
	public static String DATE_FORMAT_JSCAL = "yyyy-MM-dd";
	
	
	public static String GLOBAL_DATE_FORMAT_JAVA = "globalDateFormatJava";
	public static String GLOBAL_DATE_TIME_FORMAT_JAVA = "globalDateTimeFormatJava";
	public static String GLOBAL_DATE_FORMAT_JSCAL = "globalDateFormatJsCal";
	public static String GLOBAL_DEPARTMENT = "globalDepartment";
	public static String GLOBAL_SECTION = "globalSection";
	public static String GLOBAL_ROLE = "globalRole";

	public static String GLOBAL_ACCESS_RIGHT = "globalAccessRight";
	public static String GLOBAL_ACTIVE_MAP = "globalActiveMap";
	public static String GLOBAL_YES_NO_MAP = "globalYesNoMap";
	public static String GLOBAL_USER_TYPE_MAP = "globalUserTypeMap";
	public static String GLOBAL_ACCESS_RIGHT_MAP = "globalAccessRightMap";

	public static String GLOBAL_DEPARTMENT_JSON = "globalDepartmentJSON";
	public static String GLOBAL_SECTION_JSON = "globalSectionJSON";
	public static String GLOBAL_ROLE_JSON = "globalRoleJSON";

	public static String STATUS_ACTIVE = "1";
	public static String STATUS_NOT_ACTIVE = "0";
	
	public final static String SUCCESS_VALUE="S";
	public final static String FAILURE_VALUE="F";

	public final static String GLOBAL_ACTIVE_DIRECTORY = "activeDirectory";
	

	public static final Map<String,String> REPORTMODULE;
	
	public static final Map<String,String> REPORTMODULE_DESC;
	
	static {
		REPORTMODULE_DESC = new HashMap<String, String>();
		REPORTMODULE_DESC.put("R01","Visitor Access Detail Report");
		REPORTMODULE_DESC.put("R02","Visitor Statistic Report");
		REPORTMODULE_DESC.put("R03","Security Guard Attendent Report");
		REPORTMODULE_DESC.put("R04","Security Guard KPI Report");

		REPORTMODULE = new HashMap<String, String>();
		REPORTMODULE.put("R01","Report Center");
		REPORTMODULE.put("R02","Report Center");
		REPORTMODULE.put("R03","Report Center");
		REPORTMODULE.put("R04","Report Center");

	}
	
	public static final String MIME_XLS = "application/vnd.ms-excel";
	public static final String MIME_PDF = "application/pdf";

}


